#ifndef ROTATE_DIALOG_H
#define ROTATE_DIALOG_H

#include <QDialog>
#include <QtGui>
#include "objectTreeItem.h"

class RotateDialog : public QDialog{
    Q_OBJECT

    public:
        RotateDialog(QList<QTreeWidgetItem *>, QWidget * = 0);
        ~RotateDialog();

    signals:
        void done();

    private:
        QList<QTreeWidgetItem *> list;
        double rotateX, rotateY, rotateZ, tetha, relativePositionX, relativePositionY, relativePositionZ;
        bool useRelativePosition;

    private slots:
        void acceptAndCreate();
        void changeTetha(double);
        void changeRotateX(double);
        void changeRotateY(double);
        void changeRotateZ(double);
        void changeRelativePositionX(double);
        void changeRelativePositionY(double);
        void changeRelativePositionZ(double);
        void changeUseRelativePosition(bool);
};

#endif

